.class public Lnbisdk/ha;
.super Lnbisdk/gb;


# static fields
.field private static kh:Lnbisdk/cy;


# instance fields
.field private ke:Lnbisdk/iz;

.field private kf:Lnbisdk/em;

.field private kg:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lnbisdk/ha;->kh:Lnbisdk/cy;

    return-void
.end method

.method protected constructor <init>(Lnbisdk/em;Lnbisdk/iz;)V
    .locals 0

    invoke-direct {p0}, Lnbisdk/gb;-><init>()V

    iput-object p2, p0, Lnbisdk/ha;->ke:Lnbisdk/iz;

    iput-object p1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    return-void
.end method


# virtual methods
.method public final a(Lnbisdk/dz;)V
    .locals 1

    invoke-super {p0, p1}, Lnbisdk/gb;->a(Lnbisdk/dz;)V

    iget-object v0, p0, Lnbisdk/ha;->ke:Lnbisdk/iz;

    invoke-interface {v0, p1}, Lnbisdk/iz;->a(Lnbisdk/dz;)V

    return-void
.end method

.method public final a(Lnbisdk/dz;I)V
    .locals 1

    invoke-super {p0, p1, p2}, Lnbisdk/gb;->a(Lnbisdk/dz;I)V

    iget-object v0, p0, Lnbisdk/ha;->ke:Lnbisdk/iz;

    invoke-interface {v0, p1, p2}, Lnbisdk/iz;->a(Lnbisdk/dz;I)V

    return-void
.end method

.method public final a(Lnbisdk/dz;Lcom/navbuilder/nb/NBException;)V
    .locals 1

    invoke-super {p0, p1, p2}, Lnbisdk/gb;->a(Lnbisdk/dz;Lcom/navbuilder/nb/NBException;)V

    iget-object v0, p0, Lnbisdk/ha;->ke:Lnbisdk/iz;

    invoke-interface {v0, p1, p2}, Lnbisdk/iz;->a(Lnbisdk/dz;Lcom/navbuilder/nb/NBException;)V

    return-void
.end method

.method public final a(Lnbisdk/dz;Lnbisdk/fk;)V
    .locals 4

    const-string v0, "search-cookie"

    invoke-static {p2, v0}, Lnbisdk/la;->g(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/cy;

    move-result-object v0

    if-eqz v0, :cond_0

    sput-object v0, Lnbisdk/ha;->kh:Lnbisdk/cy;

    :cond_0
    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->gQ()Lnbisdk/hj;

    move-result-object v0

    const/16 v1, 0xd

    invoke-interface {v0, v1}, Lnbisdk/hj;->isEnabled(I)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v0}, Lnbisdk/em;->en()B

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    const-string v1, "search-event-cookie"

    invoke-static {p2, v1}, Lnbisdk/la;->g(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/cy;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/em;->c(Lnbisdk/cy;)V

    iget-object v0, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-static {v0}, Lnbisdk/by;->a(Lnbisdk/em;)I

    move-result v0

    iput v0, p0, Lnbisdk/ha;->kg:I

    :cond_1
    const-string v0, "proxpoi-error"

    invoke-static {p2, v0}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v0

    if-eqz v0, :cond_2

    new-instance v1, Lcom/navbuilder/nb/NBException;

    const-string v2, "code"

    invoke-static {v0, v2}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v2

    long-to-int v0, v2

    invoke-direct {v1, v0}, Lcom/navbuilder/nb/NBException;-><init>(I)V

    invoke-virtual {p0, p1, v1}, Lnbisdk/ha;->a(Lnbisdk/dz;Lcom/navbuilder/nb/NBException;)V

    :goto_0
    return-void

    :cond_2
    iget-object v0, p0, Lnbisdk/ha;->ke:Lnbisdk/iz;

    invoke-interface {v0, p1, p2}, Lnbisdk/iz;->a(Lnbisdk/dz;Lnbisdk/fk;)V

    goto :goto_0
.end method

.method public final a(Lnbisdk/ri;)V
    .locals 9

    const/4 v8, 0x2

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->ed()Lnbisdk/br;

    move-result-object v2

    new-instance v4, Lnbisdk/ri;

    const-string v1, "position"

    invoke-direct {v4, v1}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    invoke-interface {v2}, Lnbisdk/br;->bH()S

    move-result v1

    packed-switch v1, :pswitch_data_0

    :goto_0
    invoke-virtual {p1, v4}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    invoke-interface {v2}, Lnbisdk/br;->bH()S

    move-result v1

    if-ne v1, v8, :cond_0

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->en()B

    move-result v1

    if-eq v1, v8, :cond_0

    new-instance v1, Lnbisdk/ri;

    const-string v2, "directed"

    invoke-direct {v1, v2}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v1}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    :cond_0
    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->eh()Lnbisdk/cs;

    move-result-object v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->ei()Lnbisdk/cs;

    move-result-object v1

    if-eqz v1, :cond_1

    new-instance v1, Lnbisdk/ri;

    const-string v2, "box"

    invoke-direct {v1, v2}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v1}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    iget-object v2, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v2}, Lnbisdk/em;->eh()Lnbisdk/cs;

    move-result-object v2

    invoke-static {v2}, Lnbisdk/at;->a(Lnbisdk/cs;)Lnbisdk/ri;

    move-result-object v2

    invoke-virtual {v1, v2}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    iget-object v2, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v2}, Lnbisdk/em;->ei()Lnbisdk/cs;

    move-result-object v2

    invoke-static {v2}, Lnbisdk/at;->a(Lnbisdk/cs;)Lnbisdk/ri;

    move-result-object v2

    invoke-virtual {v1, v2}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    :cond_1
    new-instance v2, Lnbisdk/ri;

    const-string v1, "iter-command"

    invoke-direct {v2, v1}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v2}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    const-string v3, "state"

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->ef()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [B

    invoke-virtual {v2, v3, v1}, Lnbisdk/ri;->c(Ljava/lang/String;[B)V

    const-string v1, "start"

    iget-object v3, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v3}, Lnbisdk/em;->ee()B

    move-result v3

    if-ne v3, v8, :cond_6

    const-string v1, "next"

    :cond_2
    :goto_1
    const-string v3, "command"

    invoke-static {v2, v3, v1}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "number"

    iget-object v3, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v3}, Lnbisdk/em;->ec()I

    move-result v3

    invoke-static {v2, v1, v3}, Lnbisdk/lr;->a(Lnbisdk/ri;Ljava/lang/String;I)V

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->eg()Lnbisdk/lg;

    move-result-object v1

    if-eqz v1, :cond_3

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->eg()Lnbisdk/lg;

    move-result-object v1

    invoke-static {v1}, Lnbisdk/co;->c(Lnbisdk/lg;)Lnbisdk/ri;

    move-result-object v1

    invoke-virtual {p1, v1}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    :cond_3
    const-string v1, "scheme"

    iget-object v2, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v2}, Lnbisdk/em;->getScheme()Ljava/lang/String;

    move-result-object v2

    invoke-static {p1, v1, v2}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->getRouteID()[B

    move-result-object v1

    if-eqz v1, :cond_4

    iget-object v2, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v2}, Lnbisdk/em;->en()B

    move-result v2

    if-ne v2, v8, :cond_7

    new-instance v2, Lnbisdk/ri;

    const-string v3, "route-corridor"

    invoke-direct {v2, v3, p1}, Lnbisdk/ri;-><init>(Ljava/lang/String;Lnbisdk/ri;)V

    const-string v3, "route-id"

    invoke-virtual {v2, v3, v1}, Lnbisdk/ri;->c(Ljava/lang/String;[B)V

    const-string v1, "distance"

    iget-object v3, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v3}, Lnbisdk/em;->em()I

    move-result v3

    int-to-long v3, v3

    invoke-static {v2, v1, v3, v4}, Lnbisdk/iq;->a(Lnbisdk/ri;Ljava/lang/String;J)V

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->getWidth()I

    move-result v1

    if-eqz v1, :cond_4

    const-string v1, "width"

    iget-object v3, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v3}, Lnbisdk/em;->getWidth()I

    move-result v3

    int-to-long v3, v3

    invoke-static {v2, v1, v3, v4}, Lnbisdk/iq;->a(Lnbisdk/ri;Ljava/lang/String;J)V

    :cond_4
    :goto_2
    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->getLanguage()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_5

    const-string v1, "language"

    iget-object v2, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v2}, Lnbisdk/em;->getLanguage()Ljava/lang/String;

    move-result-object v2

    invoke-static {p1, v1, v2}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    :cond_5
    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->ej()Z

    move-result v1

    if-eqz v1, :cond_9

    new-instance v2, Lnbisdk/ri;

    const-string v1, "want-premium-placement"

    invoke-direct {v2, v1, p1}, Lnbisdk/ri;-><init>(Ljava/lang/String;Lnbisdk/ri;)V

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->eo()Ljava/util/Vector;

    move-result-object v1

    if-eqz v1, :cond_8

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->eo()Ljava/util/Vector;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/Vector;->size()I

    move-result v1

    if-lez v1, :cond_8

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->eo()Ljava/util/Vector;

    move-result-object v3

    const/4 v1, 0x0

    move v4, v1

    :goto_3
    invoke-virtual {v3}, Ljava/util/Vector;->size()I

    move-result v1

    if-ge v4, v1, :cond_8

    invoke-virtual {v3, v4}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lnbisdk/of;

    invoke-static {v1}, Lnbisdk/co;->b(Lnbisdk/of;)Lnbisdk/ri;

    move-result-object v1

    invoke-virtual {v2, v1}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    add-int/lit8 v1, v4, 0x1

    move v4, v1

    goto :goto_3

    :pswitch_0
    move-object v0, v2

    check-cast v0, Lnbisdk/cs;

    move-object v1, v0

    const-string v3, "variant"

    const-string v5, "point"

    invoke-static {v4, v3, v5}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    new-instance v3, Lnbisdk/ri;

    const-string v5, "point"

    invoke-direct {v3, v5}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v3}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    const-string v5, "lat"

    invoke-virtual {v1}, Lnbisdk/cs;->getLatitude()D

    move-result-wide v6

    invoke-static {v3, v5, v6, v7}, Lnbisdk/el;->a(Lnbisdk/ri;Ljava/lang/String;D)V

    const-string v5, "lon"

    invoke-virtual {v1}, Lnbisdk/cs;->getLongitude()D

    move-result-wide v6

    invoke-static {v3, v5, v6, v7}, Lnbisdk/el;->a(Lnbisdk/ri;Ljava/lang/String;D)V

    goto/16 :goto_0

    :pswitch_1
    move-object v0, v2

    check-cast v0, Lnbisdk/kw;

    move-object v3, v0

    const-string v1, "variant"

    const-string v5, "gps"

    invoke-static {v4, v1, v5}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v3}, Lnbisdk/mu;->e(Lnbisdk/kw;)Lnbisdk/ri;

    move-result-object v1

    invoke-virtual {v4, v1}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    goto/16 :goto_0

    :cond_6
    iget-object v3, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v3}, Lnbisdk/em;->ee()B

    move-result v3

    const/4 v4, 0x3

    if-ne v3, v4, :cond_2

    const-string v1, "prev"

    goto/16 :goto_1

    :cond_7
    const-string v2, "route-id"

    invoke-virtual {p1, v2, v1}, Lnbisdk/ri;->c(Ljava/lang/String;[B)V

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->eb()I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_4

    const-string v1, "maneuver"

    iget-object v2, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v2}, Lnbisdk/em;->eb()I

    move-result v2

    invoke-static {p1, v1, v2}, Lnbisdk/lr;->a(Lnbisdk/ri;Ljava/lang/String;I)V

    goto/16 :goto_2

    :cond_8
    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->getFormat()Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_9

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->eq()I

    move-result v1

    if-lez v1, :cond_9

    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->ep()I

    move-result v1

    if-lez v1, :cond_9

    new-instance v1, Lnbisdk/ri;

    const-string v3, "image"

    invoke-direct {v1, v3, v2}, Lnbisdk/ri;-><init>(Ljava/lang/String;Lnbisdk/ri;)V

    const-string v2, "format"

    iget-object v3, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v3}, Lnbisdk/em;->getFormat()Ljava/lang/String;

    move-result-object v3

    invoke-static {v1, v2, v3}, Lnbisdk/ok;->a(Lnbisdk/ri;Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "width"

    iget-object v3, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v3}, Lnbisdk/em;->eq()I

    move-result v3

    invoke-static {v1, v2, v3}, Lnbisdk/lr;->a(Lnbisdk/ri;Ljava/lang/String;I)V

    const-string v2, "height"

    iget-object v3, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v3}, Lnbisdk/em;->ep()I

    move-result v3

    invoke-static {v1, v2, v3}, Lnbisdk/lr;->a(Lnbisdk/ri;Ljava/lang/String;I)V

    :cond_9
    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->ek()Z

    move-result v1

    if-eqz v1, :cond_a

    new-instance v1, Lnbisdk/ri;

    const-string v2, "want-enhanced-pois"

    invoke-direct {v1, v2}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v1}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    :cond_a
    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->el()Z

    move-result v1

    if-eqz v1, :cond_b

    new-instance v1, Lnbisdk/ri;

    const-string v2, "want-formatted"

    invoke-direct {v1, v2}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v1}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    :cond_b
    iget-object v1, p0, Lnbisdk/ha;->kf:Lnbisdk/em;

    invoke-virtual {v1}, Lnbisdk/em;->er()Z

    move-result v1

    if-eqz v1, :cond_c

    new-instance v1, Lnbisdk/ri;

    const-string v2, "want-spelling-suggestions"

    invoke-direct {v1, v2}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v1}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    :cond_c
    sget-object v1, Lnbisdk/ha;->kh:Lnbisdk/cy;

    if-eqz v1, :cond_d

    sget-object v1, Lnbisdk/ha;->kh:Lnbisdk/cy;

    const-string v2, "search-cookie"

    invoke-static {p1, v1, v2}, Lnbisdk/la;->a(Lnbisdk/ri;Lnbisdk/cy;Ljava/lang/String;)V

    :cond_d
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public final b(Lnbisdk/dz;)V
    .locals 1

    invoke-super {p0, p1}, Lnbisdk/gb;->b(Lnbisdk/dz;)V

    iget-object v0, p0, Lnbisdk/ha;->ke:Lnbisdk/iz;

    invoke-interface {v0, p1}, Lnbisdk/iz;->b(Lnbisdk/dz;)V

    return-void
.end method

.method public final fy()I
    .locals 1

    iget v0, p0, Lnbisdk/ha;->kg:I

    return v0
.end method

.method protected final getType()Ljava/lang/String;
    .locals 1

    const-string v0, "proxpoi"

    return-object v0
.end method
